CC=gcc
CFLAGS=-Wall -g3
LFLAGS=-L../lib
IFLAGS=-I../include
INSTALL_DIR=../../../../lib/


all:libreadconf.so libhostmap.so

lib%.so:%.c
	$(CC) -shared -fPIC $(CFLAGS) $(IFLAGS) -o $@ $<

install:
	cp *.so $(INSTALL_DIR)

clean:
	rm -rf *.so
	cd $(INSTALL_DIR) ; rm -rf *.so
